<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>练习</title>
</head>
<body>
<script>
  function getMaxArr(arr=[]){
    let max=arr[0]
    for (let i = 1; i < max.length; i++) {
      if(max<arr[i]){
        max=arr[i]
      }
    }
    return max
  }
  let max= getMaxArr([1,20,36,456])
  console.log(max)
  (function (x,y){
      console.log(x+y)
      let num=10
      let arr=[]
  })(1,2);
  (function (x,y){
      let arr=[]
      console.log(x+y)
  }(1,3))

</script>
</body>
</html>
